//
//  ViewController.m
//  Demo
//
//  Created by Joe.cheng on 2023/4/25.
//

#import "ViewController.h"
//#import <AFNetworking/AFNetworking.h>
#import <Masonry/Masonry.h>
#import <TMUIComponents/TMUIComponents.h>
//#import <TMToast/TMToast.h>

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    NSLog(@"%s",__FUNCTION__);
    
    TMUINavigationBar *navBar = [[TMUINavigationBar alloc] init];
    navBar.title = @"123";
    [self.view addSubview:navBar];
    
}


- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
//    AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
//    [manager GET:@"http://www.baidu.com" parameters:nil headers:nil progress:^(NSProgress * _Nonnull downloadProgress) {
//
//    } success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
//        NSLog(@"%@",responseObject);
//    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
//        NSLog(@"%@",error);
//    }];
    
    
    UIView *v = [UIView new];
    v.backgroundColor = UIColor.grayColor;
    [self.view addSubview:v];
    [v mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(UIEdgeInsetsMake(100, 100, 100, 100));
    }];
//
//    [TMToast toastScore:100 content:@"hahhahah"];
}


@end
